﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WPFByCoreApp
{
    /// <summary>
    /// Interaction logic for TestContextMenuWindow.xaml
    /// </summary>
    public partial class TestContextMenuWindow : Window
    {
        public TestContextMenuWindow()
        {
            InitializeComponent();

            this.DataContext = new TestContextMainViewModel();
        }

        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            
        }

        private void MenuItem_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {

        }
    }

    public class TestContextMainViewModel
    {
        public Prism.Commands.DelegateCommand mycommand { get; set; }


        public TestContextMainViewModel()
        {
            mycommand = new Prism.Commands.DelegateCommand((Action)delegate
            {

                MessageBox.Show("sdf");


            });
        }

    }
}
